package models;

import java.util.LinkedList;

import javax.persistence.Entity;
import play.data.validation.*;
import play.db.jpa.Model;


public class Admin extends User {
	@Required
	private String fName; // First name of Admin, Tarek Sheasha
	@Required
	private String lName; // Last name of Admin, Tarek Sheasha
	@Required
	private String username; // Username of Admin, Tarek Sheasha
	@Required
	private String password; // Password of Admin, Tarek Sheasha
	@Required
	private String phoneNumber; // Phone Number of Admin, Tarek Sheasha
	@Required
	private String address; // Address of Admin, Tarek Sheasha
	@Required
	private String email; //Email Address of Admin, Tarek Sheasha
	
	/**
	 *Constructs a new Admin by calling the super class constructor
	 * @author Tarek Sheasha
	 * @version 02.05.2011
	 * @category C1S3
	 * @param attributes
	 * 
	 */
	public Admin(LinkedList<String> attributes) {
		super(attributes);
		this.setAdmin(true);
	}
	
	
	
	public String getfName() {
		return fName;
	}


	public void setfName(String fName) {
		this.fName = fName;
	}


	public String getlName() {
		return lName;
	}


	public void setlName(String lName) {
		this.lName = lName;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getPhoneNumber() {
		return phoneNumber;
	}


	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}


	public String getAddress() {
		return address;
	}


	public void setAddress(String address) {
		this.address = address;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}
}